package com.study.designmodes.service.executor.businessTask;

import com.study.designmodes.enums.BusinessCodeEnum;
import com.study.designmodes.enums.WebsiteCodeEnum;
import com.study.designmodes.request.BusinessObjectRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author yangyanbin
 * @since 20230201
 **/
@Slf4j
@Component
public class BusinessTaskExecutorForInsuranceRegister extends BusinessTaskAbstractExecutor {

    /**
     * 注册业务枚举
     */
    public BusinessTaskExecutorForInsuranceRegister() {
        BusinessTaskExecutorRegister.register(BusinessCodeEnum.DECLARE_INSURANCE_REGISTER, this);
    }

    /**
     * 处理过程
     *
     * @param businessObjectRequest 处理参数
     */
    @Override
    protected void process(BusinessObjectRequest businessObjectRequest) {
        super.process(businessObjectRequest);
        this.diyFunction(businessObjectRequest, WebsiteCodeEnum.BEIJING_MEDICAL);
    }
}
